package com.zb.zeus.common.core;

import com.zb.zeus.common.core.utils.StringUtils;

/**
 * @author fujianjian
 * @date 2022/5/7 17:24
 **/
public class ZeusVersion {
    private final static String DEFAULT_VERSION = "1.0.0-SNAPSHOT";

    private ZeusVersion() {
    }

    public static String getVersion() {
        String version = ZeusVersion.class.getPackage().getImplementationVersion();
        return StringUtils.isNotEmpty(version) ? version : DEFAULT_VERSION;
    }
}
